package com.aaa.system.service;

import com.aaa.entity.User;
import com.aaa.system.vo.UserVo;
import com.aaa.vo.Result;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

public interface UserService {

    public User findByUsername(String username);

    Result<User> getUserInfo();

    Result<IPage<User>> findByCondition(UserVo userVo);

    Result<Boolean> saveOrUpd(User user);

    Result<Boolean> delOneUser(Long userId);

    Result<Boolean> bachListUser(Long[] userIds);

    Result<Boolean> clearRedis();

    Result<Boolean> updUserPassword(String olePass, String pass);

    List<User> getAllUserList();

    List<User> queryUserNeedScheduling(Map<String, Object> map);

    Result<String> uploadFile(HttpServletRequest request, MultipartFile file);

    String getUsernameById(Long userId);
}
